package com.goldsprite.gameframeworks.ecs.component;

import com.goldsprite.gameframeworks.utils.StringUtils;

public class Component implements IComponent{
	public final ComponentField fields =  new ComponentField();

	public Component(){
		initIComponent();
	}

	@Override
	public ComponentField getCompFields() {
		return fields;
	}

	@Override
	public String toString() {
		String gobjectName = getGObject() == null ? null : getGObject().getName();
		return StringUtils.formatString("%s.%s:%s", gobjectName, getName(), getRunnableGid());
	}
}
